package basic.io;

import java.io.FileReader;
import java.io.IOException;

public class MyLineNumberReaderTest {

	public static void main(String[] args) throws IOException {
        MyLineNumberReader myLineNumberReader = new MyLineNumberReader(new FileReader("demo/a.txt"));
        String s=null ;
        while((s=myLineNumberReader.readLine())!=null){
        	  System.out.println(myLineNumberReader.getLineNumber()+s);
        }
	}

}
